const routers = [
    {
        path: '/',
        meta: {
            title: '登陆'
        },
        component:(resolve) => require(['./views/index.vue'], resolve)
    },
    {
        path: '/main',
        meta: {
            title: '主页'
        },
        component: (resolve) => require(['./views/main.vue'], resolve),
        children: [
            {
                path: 'changePwd',
                name: '修改密码',
                meta: {
                    title: '修改密码'
                },
                component:(resolve) => require(['./views/subViews/changePwd.vue'], resolve)
            },
            {
                path: 'worker',
                name: '工人管理',
                meta: {
                    title: '工人管理'
                },
                component:(resolve) => require(['./views/subViews/worker.vue'], resolve)
            },
            {
                path: 'company',
                name: '企业管理',
                meta: {
                    title: '企业管理'
                },
                component:(resolve) => require(['./views/subViews/company.vue'], resolve)
            },
            {
                path: 'job',
                name: '招工管理',
                meta: {
                    title: '招工管理'
                },
                component:(resolve) => require(['./views/subViews/job.vue'], resolve)
            },
            {
                path: 'dictionary',
                name: '字典管理',
                meta: {
                    title: '字典管理'
                },
                component:(resolve) => require(['./views/subViews/dictionary.vue'], resolve)
            }
        ]
    }
];
export default routers;
